<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td   colspan="6" class="t_bar2">基本信息</td>
		
	</tr>
	<tr>
		<td   align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="5">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required "  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>项目性质：</td>
	<td nowrap  valign="middle" >
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="identified" label="新建" value="01" /><span style="vertical-align: middle;">新建</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="identified" label="续建" value="02" /><span style="vertical-align: middle;">续建</span></label> 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="identified" label="扩建" value="03" /><span style="vertical-align: middle;">扩建</span></label>
	<input type="hidden" name="proposal/identified_value" id="identified_value" class="required" value="<x:out select="$xmlData/data/proposal/identified_value" />" label="项目性质" /> 
	<input type="hidden" name="proposal/identified_name" id="identified_name" value="<x:out select="$xmlData/data/proposal/identified_name" />" label="项目性质" /></td>
	<td align="right"><span class="color_red">*</span>项目核准或备案文号：</td>
	<td colspan="3"><input name="proposal/os_invest_no"  label="项目核准或备案文号"
			type="text" class="input_css required"
			 maxlength="20"
			value="<x:out select="$xmlData/data/proposal/os_invest_no" />" /></td>
	</tr>
	
	<tr>
	<td align="right"><span class="color_red">*</span>用能监控情况：</td>
	<td nowrap  valign="middle" colspan="5">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="monitor" label="国家监控" value="01" /><span style="vertical-align: middle;">国家监控</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="monitor" label="省监控" value="02" /><span style="vertical-align: middle;">省监控</span></label> 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="monitor" label="市监控" value="03" /><span style="vertical-align: middle;">市监控</span></label>
	<input type="hidden" name="proposal/monitor_value" id="monitor_value" class="required" value="<x:out select="$xmlData/data/proposal/monitor_value" />" label="用能监控情况" /> 
	<input type="hidden" name="proposal/monitor_name" id="monitor_name" value="<x:out select="$xmlData/data/proposal/monitor_name" />" label="用能监控情况" /></td>
	</tr>
		<tr>
	<td align="right"><span class="color_red">*</span>项目技术类型：</td>
	<td nowrap  valign="middle" colspan="5">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="technique" label="新技术" value="01" /><span style="vertical-align: middle;">新技术</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="technique" label="新工艺" value="02" /><span style="vertical-align: middle;">新工艺</span></label> 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="technique" label="新方法" value="03" /><span style="vertical-align: middle;">新方法</span></label>
	<label> <input type="radio" class="do " id="advant_04" style="vertical-align: middle;" name="technique" label="新材料" value="04" /><span style="vertical-align: middle;">新材料</span></label>
	<label> <input type="radio" class="do " id="advant_05" style="vertical-align: middle;" name="technique" label="其他" value="05" /><span style="vertical-align: middle;">其他</span></label>
	<input type="hidden" name="proposal/technique_value" id="technique_value" class="required" value="<x:out select="$xmlData/data/proposal/technique_value" />" label="项目技术类型" /> 
	<input type="hidden" name="proposal/technique_name" id="technique_name" value="<x:out select="$xmlData/data/proposal/technique_name" />" label="项目技术类型" /></td>
	</tr>
	<tr>
		<td   align="right"><span class="color_red">*</span>项目年节能量（吨标煤）：</td>
		<td  colspan="5">
			<input id="zh_title" name="proposal/energy" label="项目年节能量" type="text" required class="input_css required " style="text-align: right; "  onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/energy" />"/> 
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>项目实施地点：</td>
	<td nowrap  valign="middle" colspan="5">
	<label> <input type="radio" class="do " id="address_01" style="vertical-align: middle;" name="project_address" label="无锡市" value="01" onclick="setStatus();"/><span style="vertical-align: middle;">无锡市</span></label> 
	<label> <input type="radio" class="do " id="address_02" style="vertical-align: middle;" name="project_address" label="其他地区" value="02" onclick="setStatus();"/><span style="vertical-align: middle;">其他地区</span></label> 
	<input type="text" name="proposal/project_address_other" disabled id="other" maxlength="20" class="gray" value="<x:out select="$xmlData/data/proposal/project_address_other" />" label="其他地区">
	<input type="hidden" name="proposal/project_address_value" id="project_address_value" class="required" value="<x:out select="$xmlData/data/proposal/project_address_value" />" label=项目实施地点 /> 
	<input type="hidden" name="proposal/project_address_name" id="project_address_name" value="<x:out select="$xmlData/data/proposal/project_address_name" />"  /></td>
	</tr>
	<tr>
	<td  align="right" nowrap><span class="color_red">*</span>开始日期：</td>
	<td colspan="1">
		<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
		<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date  dateCompare:end_date" label="开始日期" ></cpt:date> 
	</td>
	<td  align="right" nowrap><span class="color_red">*</span>结束日期：</td>
	<td colspan="3">
		<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
		<cpt:date id="end_date" name="proposal/end_date" className="required date" label="结束日期"  value="${end_date}" ></cpt:date> 
	</td>
	</tr>
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td >
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
		<td>&nbsp;</td>
		<td colspan="3">&nbsp;</td>
	
	</tr>
	
	<tr>
		<td   colspan="6" class="t_bar2">申请项目资金情况（单位：万元）</td>
		
	</tr>
	<tr>
		<td align="right">项目投入资金总额：</td>
		<td colspan="1"><input name="proposal/investment_budget" id="investment_budget"
			 label="项目投入资金总额" type="text" class="input_css  gray" disabled
			style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/investment_budget" />" /></td>
		<td align="right">其中：设备投入资金：</td>
		<td colspan="3"><input name="proposal/finsh_budget" id="finsh_budget"
			 label="其中：设备投入资金" type="text" 
			class="input_css  gray"  disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/finsh_budget" />" /></td>
	</tr>
	<tr>
		<td  align="right"  >项目类别：</td>
		<td   ><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		<td  align="right">支持方式：</td>
		<td  colspan="3">
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
		
	</tr>
	<tr>
	<td align="right">申请金额：</td>
	<td >
	<input  name="proposal/sqje" id="sqje"   label="申请金额" type="text" class="input_css  gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
	</td>
	<td  align="right">资金级次：</td>
     <td colspan="3">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>归口管理部门：</td>
		<td  ><span name="proposal/org_name">无锡市经济和信息化委员会</span> </td>
	    <td  align="right">管理类别：</td>
		<td  colspan="3">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>项目所属类别：</td>
	<td nowrap  valign="middle" colspan="5">
	<label> <input type="radio" class="do " id="category_01" style="vertical-align: middle;" name="granttype" label="节能技术改造项目" value="01" /><span style="vertical-align: middle;">节能技术改造项目</span></label> 
	<label> <input type="radio" class="do " id="category_02" style="vertical-align: middle;" name="granttype" label="循环经济项目 " value="02" /><span style="vertical-align: middle;">循环经济项目</span></label>
	<label> <input type="radio" class="do " id="category_03" style="vertical-align: middle;" name="granttype" label="节能产品产业化项目" value="03" /><span style="vertical-align: middle;">节能产品产业化项目</span></label>
	<label> <input type="radio" class="do " id="category_04" style="vertical-align: middle;" name="granttype" label="合同能源管理项目" value="04" /><span style="vertical-align: middle;">合同能源管理项目</span></label>
	<input type="hidden" name="proposal/granttype_value" id="granttype_value" class="required" value="<x:out select="$xmlData/data/proposal/granttype_value" />" label=项目所属类别 /> 
	<input type="hidden" name="proposal/granttype_name" id="granttype_name" value="<x:out select="$xmlData/data/proposal/granttype_name" />" /></td>
	</tr>
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	</table>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td    class="t_bar2">申请资助依据条款</td>
		
	</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<br/>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="8">人员信息</td>
		
	</tr>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>


<script type="text/javascript">
    function setStatus(){
    	if($("#address_02").is(":checked")){
    		$("#other").removeClass("gray");
    		$("#other").addClass("required");
    		$("#other").attr("disabled",false);
    	}else{
    		$("#other").removeClass("required");
    		$("#other").addClass("gray");
    		$("#other").attr("disabled",true);
    		$("#other").val("");
    	}
    }
    function setStatus1(){
    	if($("#category_05").is(":checked")){
    		$("#granttype_other").removeClass("gray");
    		$("#granttype_other").addClass("required");
    		$("#granttype_other").attr("disabled",false);
    	}else{
    		$("#granttype_other").removeClass("required");
    		$("#granttype_other").addClass("gray");
    		$("#granttype_other").attr("disabled",true);
    	}
    }
    $(function(){
    	setStatus();
    	//setStatus1();
    });
</script>